var getIntersectionNode = function(headA, headB) {
    while(headA) {
        headA.flag = true
        headA = headA.next
    }
    while(headB) {
        if (headB.flag) return headB
        headB = headB.next
    }
    return null
};
console.log(11)
getIntersectionNode([4, 1, 8, 4, 5],[5, 6, 1, 8, 4, 5])